{% extends 'master.html' %}    <!--用用父模板-->
{% block title %} Beam个人博客 {% endblock %}



{% block classname %}
  {% for row in classification %}
   <li id="article-{{row.id}}"><a href=/article-{{ row.id }}>{{ row }}</a></li>
  {% endfor %}
{% endblock %}

{% block tags %}
  {% for row in articletags %}
    <span class="label badge-info">{{ row }}</span>
  {% endfor %}
{% endblock %}

{% block concent %}
  {% for row in article %}
    <h2>{{ row.article_name }}</h2>
		<p class="content" style="overflow:hidden;width:800px;white-space:nowrap;text-overflow:ellipsis;">{{ row.content }}</p>
		<p><a class="btn" href=/detailed-{{ row.id }}>查看全文 »</a></p>
  {% endfor %}

	<div style="text-align:center">
		﻿{% for page_number in article.paginator.page_range %}
			{% ifequal page_number  article.number %}
				{{ page_number }}
			{% else %}
				<a href="?page={{ page_number }}">{{ page_number }}</a>
			{% endifequal %}
		{% endfor %}
	</div>
{% endblock %}


{% block js %}
	<!--<script>-->
		<!--function cut(data){-->
			<!--var xx = data.replace(/<.*?>/ig,"");-->
			<!--return xx;-->
		<!--}-->
		<!--$('.content').each(function(item) {-->
		  <!--//console.log($(this));-->
		  <!--$(this).html(cut($(this).text()));   //把修正后的数据插回去-->
		<!--})-->
	<!--</script>-->
{% endblock %}